package com.ronglian.register_mini_program.service;

import com.ronglian.register_mini_program.model.RegisterActivity;
import com.ronglian.register_mini_program.model.RegisterActivityWithBLOBs;
import com.ronglian.register_mini_program.model.web.ActivityDetailBody;
import com.ronglian.register_mini_program.model.web.ActivityBody;
import com.ronglian.register_mini_program.model.web.PageResult;

import java.util.List;

public interface ActivityService {
    //获取我加入的活动集合
    public PageResult<ActivityBody> selectJoinActivityList(String open_id, Integer page_num, Integer page_size);

    //获取我创建的活动集合
    public PageResult<ActivityBody> selectCreateActivityList(String sponsor_id, Integer page_num, Integer page_size);

    List<RegisterActivityWithBLOBs> selectAllActivity();
    int insert(RegisterActivityWithBLOBs activity);

    int update(RegisterActivityWithBLOBs activity);

    int delete(Integer activity_id);

    public ActivityDetailBody findByPrimaryKey(Integer activity_id);
}
